const crossSpawn = require('cross-spawn');
const spawn = crossSpawn.sync;
const chalk = require('chalk');
const red = chalk.red;
const green = chalk.green;

/**
 * 获取当前目录
 * @type {string}
 */
const currentPath = process.cwd().replace(/\\/g, '/') + '/';


function isWindows() {
    if (typeof process === 'undefined' || !process) {
        return false;
    }
    return process.platform === 'win32' || process.env.OSTYPE === 'cygwin' || process.env.OSTYPE === 'msys';
}





module.exports = {
    isWindows,
    currentPath,
};